import {
	Server
} from '@/utils/Server/index.js'
//4.1.2.1 登录(一键登录)
export const loginin = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/soa/login',
		method: 'post',
		data
	})
}
// 4.1.2.5 登录(手机验证码登录)
export const phoneloginin = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/phone/login',
		method: 'post',
		data
	})
}
//发送验证码 
export const sendmessage = (data) => {
	return Server({
		url: '/miniapp/member/v2/msm/send',
		method: 'post',
		data
	})
}
//获取商品列表 
export const storegoodslist = (data) => {
	return Server({
		url: '/miniapp/shop/v2/goods',
		method: 'get',
		data
	})
}
//4.1.6.3 收藏门店列表
export const storestores = (data) => {
	return Server({
		url: '/miniapp/member/v2/stores',
		method: 'get',
		data
	})
}

//4.3.5 商品分类 获取商家分类列表
export const storetype = (data) => {
	return Server({
		url: '/miniapp/shop/v2/category',
		method: 'get',
		data
	})
}
//门店详情 

export const storenamedetal = (data) => {
	return Server({
		url: '/miniapp/member/v2/store',
		method: 'get',
		data
	})
}
//商品列表 
export const bulisliststore = (data) => {
	return Server({
		url: '/miniapp/shop/v2/goods',
		method: 'get',
		data
	})
}
//适用门店 
export const applystorestore = (data) => {
	return Server({
		url: '/miniapp/member/v2/applystore',
		method: 'get',
		data
	})
}
//门店储值详情 
export const storebalance = (data) => {
	return Server({
		url: '/miniapp/v1/homepage/store/balance',
		method: 'get',
		data
	})
}
//加入购物车 
export const storecart = (data) => {
	return Server({
		url: '/miniapp/order/v2/cart',
		method: 'post',
		data
	})
}
//购物车详情 
export const storecartdetals = (data) => {
	return Server({
		url: '/miniapp/order/v2/cart',
		method: 'get',
		data
	})
}
//商品详情 
export const gooddetals = (data) => {
	return Server({
		url: '/miniapp/shop/v2/goods/detail',
		method: 'get',
		data
	})
}

//购物车减商品 /miniapp/v1/homepage/store/subtractcart
export const decreaseGoods = (data) => {
	return Server({
		url: '/miniapp/v1/homepage/store/subtractcart',
		method: 'post',
		data
	})
}
//清空购物车
export const deleteGoods = (data) => {
	return Server({
		url: '/miniapp/order/v2/cart',
		method: 'delete',
		data
	})
}
//1.11获取商品规格
export const goodattr = (data) => {
	return Server({
		url: '/miniapp/v1/homepage/store/goodattr',
		method: 'get',
		data
	})
}
//4.1.5.4充值
export const storevluerecharge = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/recharge',
		method: 'post',
		data
	})
}
//4.1.5.1 商家储值列表 
export const storevluebusiness = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/vip/shops',
		method: 'get',
		data
	})
}
//储值详情 
export const storevlueuserbills = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/fund/flows',
		method: 'get',
		data
	})
}
//充值须知 
export const withdrawalnotice = (data) => {
	return Server({
		url: '/miniapp/shop/v2/charge-notice',
		method: 'get',
		data
	})
}
//收藏人数
export const storecollectnum = (data) => {
	return Server({
		url: '/miniapp/v1/homepage/store/collectnum',
		method: 'post',
		data
	})
}
//收藏门店
export const storecollect = (data) => {
	return Server({
		url: '/miniapp/member/v2/collect',
		method: 'put',
		data
	})
}
//取消收藏
export const cancelcollect = (data) => {
	return Server({
		url: '/miniapp/member/v2/cancel-collect',
		method: 'put',
		data
	})
}
//商品详情 
export const storebusiness = (data) => {
	return Server({
		url: '/miniapp/shop/v2/goods/detail',
		method: 'get',
		data
	})
}
//4.1.2.3  登录协议及隐私协议 
export const agreements = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/protocols',
		method: 'get',
		data
	})
}
//协议详情 
export const agreementtpl = (data) => {
	return Server({
		url: '/miniapp/v1/agreement-tpl',
		method: 'get',
		data
	})
}
//关注门店
export const storeconcern = (data) => {
	return Server({
		url: '/miniapp/member/v2/collect',
		method: 'put',
		data
	})
}
//4.3.5 商品分类列表 
export const goodscatelist = (data) => {
	return Server({
		url: '/miniapp/shop/v2/goods-cate',
		method: 'get',
		data
	})
}
//4.1.5.3 根据会员id查询会员详情
export const membervipdetals = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/vip/vip',
		method: 'get',
		data
	})
}
//4.1.5.5 会员账户余额 
export const vipaccount = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/vip-account',
		method: 'get',
		data
	})
}
//商品是否含有子分类 
export const category = (data) => {
	return Server({
		url: '/miniapp/shop/v2/store/category',
		method: 'get',
		data
	})
}
//协议 
export const memberprotocol = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/protocol',
		method: 'get',
		data
	})
}
//4.1.3.8 修改手机号 
export const editmemberphone = (data) => {
	return Server({
		url: '/miniapp/member/v2/member/phone',
		method: 'post',
		data
	})
}